﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Zhuang.Tools.DBHelper.SysString
{
    public partial class SysString : Form
    {
        DAL.Access.Sys_StringDAL sys_StringDAL = new DAL.Access.Sys_StringDAL();

        public SysString()
        {
            InitializeComponent();
        }

        private void btnSearch_Click(object sender, EventArgs e)
        {

        }

        private void btnSet_Click(object sender, EventArgs e)
        {
            if (dgvMain.SelectedRows.Count > 0)
            {
                DialogResult dr = MessageBox.Show("是否要删除当前记录？","提示",MessageBoxButtons.YesNo);

                if (dr == DialogResult.Yes)
                { 
                    int stringId = Convert.ToInt32(dgvMain.SelectedRows[0].Cells["StringId"]);
                    
                }

            }
            else
            {
                MessageBox.Show("请选择要删除的记录！");
            }
        }


    }
}
